const HISTORY_KEY = 'hm_history_list'
export const setHistory = (data) => {
  localStorage.setItem(HISTORY_KEY, JSON.stringify(data))
}
export const getHistory = () => {
  const history = JSON.parse(localStorage.getItem(HISTORY_KEY))
  return history || []
}
